import {lazy} from  "react"
const Login = lazy(()=>import("../pages/Login"))
const Home = lazy(()=>import('../pages/Home'))
const History = lazy(()=>import("../pages/History"))
const My = lazy(()=>import("../pages/My"))
const Line = lazy(()=>import("../pages/Line"))
const Weight = lazy(()=>import("../pages/Weight"))
const Callcenter = lazy(()=>import("../pages/Calcenter"))
const Shop = lazy(()=>import("../pages/Shop"))
const Homeson = lazy(()=>import("../pages/Homeson"))
const routerConfig = [
    {
        path:"/login",
        element:<Login></Login>
    },
    {
        path:"/my",
        element:<My></My>,

    },
    {
        path:"/line",
        element:<Line></Line>,
        tit:"近七天体重"
      
    },
    {
        path:"/history",
        element:<History></History>,
        tit:"历史"
    },
    {
        path:"/weight",
        element:<Weight></Weight>,
        tit:"体重"

    },
    {
        path:"/home",
        element:<Home></Home>,
        children:[
            {
                path:"/home/homeson",
                element:<Homeson></Homeson>
            },
            {
                path:"/home/callcenter",
                element:<Callcenter></Callcenter>
            },
            {
                path:"/home/shop",
                element:<Shop></Shop>
            }
        ]
    }

]
export default routerConfig